<template>
    <div>
    <el-menu default-active="activeIndex" mode="horizontal" @select="handleSelect">
      <el-menu-item index="1" route="Home">处理中心</el-menu-item>
      <el-submenu index="2">
        <template slot="title">我的工作台</template>
        <el-menu-item index="2-1">选项1</el-menu-item>
        <el-menu-item index="2-2">选项1</el-menu-item>
        <el-menu-item index="2-3">选项1</el-menu-item>
      </el-submenu>
      <el-menu-item index="3">处理中心</el-menu-item>
      <el-menu-item index="4"><a href="http://www.baidu.com" target="_blank" style="text-decoration:none">处理中心</a></el-menu-item>
    </el-menu>
    </div>
</template>

<script>
export default {
    name : 'Nav',
    data(){
        return {
            activeIndex: '1',
        }
    },
    methods: {
      handleSelect(key, keyPath) {
        console.log(key, keyPath);
      }
    }
}
</script>